package cn.yunhe.dplayerdemo3.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "tb_danmup")
public class Danmup implements Serializable {

    @TableId(value = "code")
    private int code;
    private String text;
    private String color;
    private int position;
    private int size;
    private String time;
    private int id;


    public Danmup(String text, String color, int position, int size, String time, int id) {
        this.text = text;
        this.color = color;
        this.position = position;
        this.size = size;
        this.time = time;
        this.id = id;
    }

    public Danmup(String text, String color, int position, String time) {
        this.text = text;
        this.color = color;
        this.position = position;
        this.time = time;
    }
}
